<%@page import="java.util.TreeMap"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="helpers.DateHelper"%>
<%@page import="models.NewsModel"%>
<%@page import="java.util.ArrayList"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="models.SiteConfigModel"%>
<%
SiteConfigModel siteConfig = (SiteConfigModel) request.getAttribute("config");
String image = "";//UrlHelper.getServerUrl(request) + "/blobstore-serve?blob-key=" + siteConfig.getLogo();
NewsModel news = (NewsModel) request.getAttribute("news");
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="description" value="<%=siteConfig.getMetaDescription()%>" />
    <jsp:param name="keywords" value="<%=siteConfig.getMetaKeywords()%>" />
    <jsp:param name="ogsite_name" value="<%=siteConfig.getSiteName()%>" />
    <jsp:param name="ogtitle" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="ogurl" value="<%=UrlHelper.getServerUrl(request)%>" />
    <jsp:param name="ogimage" value="<%=image %>" />
    <jsp:param name="ogdescription" value="<%=siteConfig.getMetaDescription()%>" />
</jsp:include>
<script type="text/javascript" src="/js/home.js"></script>
			<div class="block-content">
				<!-- STATIC PAGE -->
				<div class="column-block">
					<div class="block-column-2">
						<div class="static-block">
							<div class="news-info">
								<h2><a href="#"><%=news.getTitle() %></a></h2>
								<div class="info">
									<span class="user-info"> 
										<a href="#" title="#"><img width="15" height="15" src="/images/user-icon.png"><strong>Bui Ngoc  Hoan</strong></a> submit
									</span>
									<span class="separator">-</span>
									<span class="Category">
										<a href="#" title="">news</a>
									</span>
									<span class="separator">-</span>
									<span class="source"><a class="link" target="_blank" href="http://vnexpress.net">vnexpress.net</a></span>
								</div>
								
								<br />
								<div class="content">
									<%=news.getContent() %>
								</div>
							</div>
						</div>
					</div>
					<div class="block-column-1">
						<div class="sidebar-block">
							<div style="display: table-cell; height: 300px; width: 317px; text-align: center; vertical-align: middle;">
								<h1>Adv</h1>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				<!-- END STATIC PAGE -->
			</div>

<jsp:include page="/layouts/footer.jsp" />